﻿using Kingdee.BOS.Core.List.PlugIn;
using Kingdee.BOS.Core.List.PlugIn.Args;
using Kingdee.BOS.Util;
using System.ComponentModel;
using System.Linq;

namespace Caraya.MFG.BusinessPlugIn
{
    [Description("列表插件测试"), HotUpdate]
    public class SimulateQuoteList : AbstractListPlugIn
    {
        public override void PrepareFilterParameter(FilterArgs e)
        {
            base.PrepareFilterParameter(e);
            //e.FilterString = e.FilterString.JoinFilterString("FDocumentStatus='C'");
            var fs= e.FilterString;
            var fields = e.ColumnFields;
            this.ListModel.FilterParameter.ColumnInfo.Remove(fields.Where(t => t.Caption == "日期").First());
        }
    }
}
